<template>
  <pass-template :initData="initData" :isWhite="true" @save="getSaveData" @add-children="addOption" :title="title">
  </pass-template>
</template>

<script>
  import PassTemplate from '../../base/quality-template/PassForm'
  export default {
    name: 'AddPassTemplate',
    data () {
      return {
        title: this.$t('configLazyLoad.qualityCheck.addPassTemplate'),
        initData: {
          _id: '',
          name: '',
          type: 'pass',
          enable: '',
          uncurxratio: '50',
          config: []
        }
      }
    },
    components: {
      PassTemplate
    },
    methods: {
      getSaveData (data) {
        this.$emit('add', data)
      },
      addOption (data) {
        this.$emit('addChildren', data)
      }
    }
  }
</script>